package com.iona.dao;

import java.util.List;

import com.iona.domain.StudyWork;

public class StudyWorkDAO extends BaseDAO {
	@SuppressWarnings("unchecked")
	public List<StudyWork> findAll() {
		return getSession().createCriteria(StudyWork.class).list();
	}
	public StudyWork findById(Integer id) {
		return (StudyWork) getSession().load(StudyWork.class, id);
	}
}
